package com.dy.design_pattern_study.adaptor_pattern.dome1.impl;

import com.dy.design_pattern_study.adaptor_pattern.dome1.Adaptee;
import com.dy.design_pattern_study.adaptor_pattern.dome1.Target;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-07
 * @Content
 */
public class Adapter extends Target {

    private Adaptee adaptee = new Adaptee();

    @Override
    public void request() {
        //这里使用 request 方法名，但实际上调用 Adaptee
        //简单的说就是，方法名，相同但实际的内容并不一样
        adaptee.specificRequest();
    }
}
